/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mainws;

import comunicacao.LogisticaWS;
import comunicacao.LogisticaWSPortType;
import javax.xml.ws.BindingProvider;

/**
 *
 * @author Anderson
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        LogisticaWS logisticaWS = new LogisticaWS();
        LogisticaWSPortType logisticaWSPortType = logisticaWS.getLogisticaWSHttpSoap12Endpoint();
        System.out.println(logisticaWSPortType.rastrearEntrega(41));
        BindingProvider bp = (BindingProvider) logisticaWSPortType;
        //bp.getRequestContext().get(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://antoniopc:8081/axis2/services/LogisticaWS?wsdl");
        //System.out.println(mainws.buscarFormasPgto(-1, null));

        //Service1 servico = new Service1();
        //System.out.println(servico.getService1Soap12().solicitarCredito("000.000.000-00", "996659", 50, "MAIN"));
        //System.out.println(mainws.procurarCliente("-1", "Valeu", "çdkfjds", "-1",null,null,null,null,null,null,null,null,null,null));
    }

}
